const { defineConfig } = require('@vue/cli-service')
var webpack = require('webpack')

module.exports = {
  devServer: {
    host: '0.0.0.0',
    open: true,
    port: 8081,
    proxy: {
      '/dev-api': {
        // 后端
        target: `http://192.168.8.14`,
        // 服务器
        // target: `http://192.168.20.202:8080`,
        changeOrigin: true,
        pathRewrite: {
          ['^' + '/api']: '/'
        }
      }
    }
  },
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery",
      })
    ]
  }
};

